package com.ruoyi.bole.integral.mapper;

import java.util.List;
import com.ruoyi.bole.integral.domain.BoleIntegralSeason;
import org.apache.ibatis.annotations.Select;

/**
 * 积分赛季Mapper接口
 * 
 * @author wujiale
 * @date 2025-05-29
 */
public interface BoleIntegralSeasonMapper 
{
    //查询最大赛季（id）
    @Select("select max(season_id) from bole_integral_season")
    public Integer selectMaxSeason();
    /**
     * 查询积分赛季
     * 
     * @param seasonId 积分赛季主键
     * @return 积分赛季
     */
    public BoleIntegralSeason selectBoleIntegralSeasonBySeasonId(Long seasonId);

    /**
     * 查询积分赛季列表
     * 
     * @param boleIntegralSeason 积分赛季
     * @return 积分赛季集合
     */
    public List<BoleIntegralSeason> selectBoleIntegralSeasonList(BoleIntegralSeason boleIntegralSeason);

    /**
     * 新增积分赛季
     * 
     * @param boleIntegralSeason 积分赛季
     * @return 结果
     */
    public int insertBoleIntegralSeason(BoleIntegralSeason boleIntegralSeason);

    /**
     * 修改积分赛季
     * 
     * @param boleIntegralSeason 积分赛季
     * @return 结果
     */
    public int updateBoleIntegralSeason(BoleIntegralSeason boleIntegralSeason);

    /**
     * 删除积分赛季
     * 
     * @param seasonId 积分赛季主键
     * @return 结果
     */
    public int deleteBoleIntegralSeasonBySeasonId(Long seasonId);

    /**
     * 批量删除积分赛季
     * 
     * @param seasonIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBoleIntegralSeasonBySeasonIds(Long[] seasonIds);
}
